package com.jyx.manage_course.client;

import com.jyx.framework.clinet.JyxServiceList;
import com.jyx.framework.domain.cms.CmsPage;
import com.jyx.framework.domain.cms.response.CmsPageResult;
import com.jyx.framework.domain.cms.response.CmsPostPageResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = JyxServiceList.JYX_SERVICE_MANAGE_CMS)
public interface CmsPageClient {
    @PostMapping("/cms/page/save")
    CmsPageResult save(@RequestBody CmsPage cmsPage);

    //一键发布页面
    @PostMapping("/cms/page/postPageQuick")
    CmsPostPageResult postPageQuick(@RequestBody CmsPage cmsPage);
}
